package lvhui.servlet;

import java.io.IOException;
import java.util.List;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import lvhui.entity.LvOrder_Master;
import lvhui.service.LvOrder_MasterService;
import lvhui.service.impl.LvOrder_MasterServiceImpl;

public class LvOrder_MasterServlet1 extends HttpServlet {

	protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		request.setCharacterEncoding("utf-8");
		response.setContentType("utf-8");
		LvOrder_MasterService lms = new LvOrder_MasterServiceImpl();
		List<LvOrder_Master> allLvOrder_Master = lms.getAllLvOrder_Master();
		request.getSession().setAttribute("allLvOrder_Master",allLvOrder_Master);
		request.getRequestDispatcher("LHMember_Order.jsp").forward(request, response);
		
	}

	protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		doGet(request, response);
	}

}
